WiFi: retry a saved network forever instead of giving up after 4 attempts - #2
Open
xtrack33 wants to merge 1 commit into
Open
WiFi: retry a saved network forever instead of giving up after 4 attempts#2xtrack33 wants to merge 1 commit into
xtrack33 wants to merge 1 commit into
Conversation
A pad whose access point is not visible for about two minutes at boot never reconnects: NetworkManager tries the saved profile four times (its default autoconnect-retries), gives up, and the printer stays offline until someone opens the network panel and triggers a scan. Seen on the bench with a phone hotspot that was asleep when the pad booted. Create every WiFi profile with autoconnect-retries = 0 (retry forever). The same value cannot be set globally in NetworkManager.conf on NM 1.52, which rejects it as an unknown connection default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pad whose access point is not visible for ~2 minutes at boot never reconnects: NetworkManager tries the saved profile 4 times (default
autoconnect-retries), gives up, and the printer stays offline until someone opens the network panel and triggers a scan. Seen on the bench with a phone hotspot asleep at boot; sonar only caught up ~10 minutes later.add_network()now creates every WiFi profile withconnection.autoconnect-retries = 0(retry forever). A global default inNetworkManager.confis not possible: NM 1.52 rejects the key as an unknown connection default. Existing profiles are handled on the YumiOS side by the NetworkManager dispatcher (YumiOS-Klipper-V2, sonar module), which sets the same value the first time a profile comes up.